home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / security / doc / cert_advisories / CA-90:06a.NeXT.vulnerability < prev    next >
Encoding:
Text File  |  1990-10-02  |  7.3 KB  |  180 lines

  1. This message is an update of the October 2, 1990 CERT Advisory (CA-90:06).
  2. There is one correction and an update that you need to know about.
  3.  
  4. For Problem #2 SOLUTION, the following line has been added:
  5.  
  6.   # /etc/chmod 440 /usr/lib/NextPrinter/npd.old
  7.  
  8. This will disable the old printer program.  An updated copy of the CERT
  9. Advisory has been included with this message.
  10.  
  11. NeXT is also making the new printer program, npd, available electronically
  12. via anonymous ftp for Internet sites.  The archives sites are:
  13.  
  14.         nova.cc.purdue.edu
  15.         umd5.umd.edu
  16.         cs.orst.edu
  17.  
  18. In addition, NeXT has asked the CERT to announce that if anyone cannot get
  19. it from the archives, NeXT Technical Support can provide it. Requests should
  20. go to:
  21.  
  22.         ask_next@NeXT.COM [...!next!ask_next]
  23.  
  24. Thanks,
  25. Ed DeHart
  26. Computer Emergency Response Team
  27.  
  28. ------------------------------------------------------------------------------
  29. CA-90:06a                      CERT Advisory
  30.                   October 3, 1990
  31.                           NeXT's System Software
  32.  
  33. -----------------------------------------------------------------------------
  34. This message is to alert administrators of NeXT Computers of four
  35. potentially serious security problems.
  36.  
  37. The information contained in this message has been provided by David Besemer,
  38. NeXT Computer, Inc.  The following describes the four security problems,
  39. NeXT's recommended solutions and the known system impact.
  40.  
  41. ------------------------------------------------------------------------------
  42.  
  43.   Problem #1 DESCRIPTION:  On Release 1.0 and 1.0a a script exists in
  44.   /usr/etc/restore0.9 that is a setuid shell script.  The existence of  
  45.   this script is a potential security problem.
  46.  
  47.   Problem #1 IMPACT:  The script is only needed during the installation
  48.   process and isn't needed for normal usage.  It is possible for any
  49.   logged in user to gain root access.
  50.  
  51.   Problem #1 SOLUTION:  NeXT owners running Release 1.0 or 1.0a should  
  52.   remove /usr/etc/restore0.9 from all disks.  This file is installed by  
  53.   the "BuildDisk" application, so it should be removed from all systems  
  54.   built with the standard release disk, as well as from the standard  
  55.   release disk itself (which will prevent the file from being installed  
  56.   on system built with the standard release disk in the future).  You  
  57.   must be root to remove this script, and the command that will remove  
  58.   the script is the following:
  59.  
  60.   # /bin/rm /usr/etc/restore0.9
  61.  
  62.                                     ---
  63.  
  64.   Problem #2 DESCRIPTION:  On NeXT computers running Release 1.0 or
  65.   1.0a that also have publicly accessible printers, users can gain
  66.   extra permissions via a combination of bugs.
  67.   
  68.   Problem #2 IMPACT:  Computer intruders are able to exploit this security
  69.   problem to gain access to the system.  Intruders, local users and remote
  70.   users are able to gain root access.
  71.  
  72.   Problem #2 SOLUTION:  NeXT computer owners running Release 1.0 or  
  73.   1.0a should do two things to fix a potential security problem.   
  74.   First, the binary /usr/lib/NextPrinter/npd must be replaced with a  
  75.   more secure version.  This more secure version of npd is available  
  76.   through your NeXT support center.  Upon receiving a copy of the more  
  77.   secure npd, you must become root and install it in place of the old  
  78.   one in /usr/lib/NextPrinter/npd.  The new npd binary needs to be  
  79.   installed with the same permission bits (6755) and owner (root) as  
  80.   the old npd binary.  The commands to install the new npd binary are  
  81.   the following:
  82.   
  83.   # /bin/mv /usr/lib/NextPrinter/npd /usr/lib/NextPrinter/npd.old
  84.   # /bin/mv newnpd /usr/lib/NextPrinter/npd
  85.       (In the above command, "newnpd" is the npd binary
  86.       that you obtained from your NeXT support center.)
  87.   # /etc/chown root /usr/lib/NextPrinter/npd
  88.   # /etc/chmod 6755 /usr/lib/NextPrinter/npd
  89.   # /etc/chmod 440 /usr/lib/NextPrinter/npd.old
  90.   
  91.   The second half of the fix to this potential problem is to change the  
  92.   permissions of directories on the system that are currently owned and  
  93.   able to be written by group "wheel".  The command that will remove  
  94.   write permission for directories owned and writable by group "wheel"  
  95.   is below.  This command is all one line, and should be run as root.
  96.   
  97.   # find / -group wheel ! -type l -perm -20 ! -perm -2 -ls -exec chmod  
  98.   g-w {} \; -o -fstype nfs -prune
  99.  
  100.                                     ---
  101.  
  102.   Problem #3 DESCRIPTION:  On NeXT computers running any release of the
  103.   system software,  public access to the window server may be a
  104.   potential security problem.
  105.  
  106.   The default in Release 1.0 or 1.0a is correctly set so that public access
  107.   to the window server is not available.  It is possible, when upgrading from
  108.   a prior release, that the old configuration files will be reused.  These
  109.   old configuration files could possibly enable public access to the window
  110.   server.
  111.  
  112.   Problem #3 IMPACT:  This security problem will enable an intruder to gain
  113.   access to the system.
  114.  
  115.   Problem #3 SOLUTION:  If public access isn't needed, it should be disabled.
  116.  
  117.   1. Launch the Preferences application, which is located in /NextApps
  118.   2. Select the UNIX panel by pressing the button with the UNIX
  119.      certificate on it.
  120.   3. If the box next to Public Window Server contains a check, click on
  121.      the box to remove the check.
  122.  
  123.                                     ---
  124.  
  125.   Problem #4 DESCRIPTION: On NeXT computers running any release of the
  126.   system software, the "BuildDisk" application is executable by all users.
  127.  
  128.   Problem #4 IMPACT:  Allows a user to gain root access.
  129.  
  130.   Problem #4 SOLUTION: Change the permissions on the "BuildDisk" application
  131.   allowing only root to execute it.  This can be accomplished with the
  132.   command:
  133.  
  134.   # chmod 4700 /NextApps/BuildDisk
  135.  
  136.   To remove "BuildDisk" from the default icon dock for new users, do the
  137.   following:
  138.  
  139.   1. Create a new user account using the UserManager application.
  140.   2. Log into the machine as that new user.
  141.   3. Remove the BuildDisk application from the Application Dock by dragging
  142.      it out.
  143.   4. Log out of the new account and log back in as root.
  144.   5. Copy the file in ~newuser/.NeXT/.dock to /usr/template/user/.NeXT/.dock
  145.     (where ~newuser is the home directory of the new user account)
  146.   6. Set the protections appropriately using the following command:
  147.         # chmod 555 /usr/template/user/.NeXT/.dock
  148.   7. If you wish, with UserManager, remove the user account that you created
  149.      in step 1.
  150.  
  151.   In release 2.0, the BuildDisk application will prompt for the root password
  152.   if it is run by a normal user.
  153.  
  154. -----------------------------------------------------------------------------
  155. CONTACT INFORMATION
  156.  
  157. For further questions, please contact your NeXT support center.
  158.  
  159. NeXT has also reported that these potential problems have been fixed in
  160. NeXT's Release 2.0, which will be available in November, 1990.
  161.  
  162. Thanks to Corey Satten and Scott Dickson for discovering, documenting, and
  163. helping resolve these problems.
  164.  
  165. -----------------------------------------------------------------------------
  166. Edward DeHart
  167. Computer Emergency Response Team/Coordination Center (CERT/CC)
  168. Software Engineering Institute
  169. Carnegie Mellon University
  170. Pittsburgh, PA 15213-3890
  171.  
  172. Internet E-mail: cert@cert.sei.cmu.edu
  173. Telephone: 412-268-7090 24-hour hotline: CERT personnel answer
  174.            7:30a.m.-6:00p.m. EST, on call for
  175.            emergencies other hours.
  176.  
  177. Past advisories and other information are available for anonymous ftp
  178. from cert.sei.cmu.edu (192.88.209.5).
  179.  
  180.